<?php echo $this->Session->flash(); ?>
<h1>ADICIONAR CONTROL DE CALIDAD</h1>
<fieldset>
    <?php
    echo $form->create('QualityControl');

    echo $form->hidden("QualityControl.property_id", array('value' => $predio));

    echo $form->input('QualityControl.anexo3', array('label' => "Anexo 3", 'type' => 'select', 'options' => array('SIN REGISTRO' => 'SIN REGISTRO', 'COMPLETO' => 'COMPLETO', 'INCOMPLETO' => 'INCOMPLETO')));
    echo $form->input('QualityControl.titulos', array('label' => "Titulos", 'type' => 'select', 'options' => array('SIN REGISTRO' => 'SIN REGISTRO', 'COMPLETO' => 'COMPLETO', 'INCOMPLETO' => 'INCOMPLETO')));
    echo $form->input('QualityControl.poderes', array('label' => "Poderes", 'type' => 'select', 'options' => array('SIN REGISTRO' => 'SIN REGISTRO', 'SI' => 'SI', 'NO' => 'NO')));
    echo $form->input('QualityControl.lesion_enorme', array('label' => "Lesión Enorme", 'type' => 'select', 'options' => array('SIN REGISTRO' => 'SIN REGISTRO', 'SI' => 'SI', 'NO' => 'NO')));
    echo $form->input('QualityControl.gravamenes', array('label' => "Gravamenes", 'type' => 'select', 'options' => array('SIN REGISTRO' => 'SIN REGISTRO', 'SI' => 'SI', 'NO' => 'NO')));
    echo $form->input('QualityControl.limitaciones', array('label' => "Limitaciones", 'type' => 'select', 'options' => array('SIN REGISTRO' => 'SIN REGISTRO', 'SI' => 'SI', 'NO' => 'NO')));
    echo $form->input('QualityControl.restricciones', array('label' => "Restricciones", 'type' => 'select', 'options' => array('SIN REGISTRO' => 'SIN REGISTRO', 'SI' => 'SI', 'NO' => 'NO')));
    echo $form->input('QualityControl.otros', array('label' => "otros", 'type' => 'select', 'options' => array('SIN REGISTRO' => 'SIN REGISTRO', 'SI' => 'SI', 'NO' => 'NO')));
    echo $form->input('QualityControl.otros_cual', array('label' => "Descripción otros"));
    echo $form->input('QualityControl.subsano', array('label' => "Subsano", 'type' => 'select', 'options' => array('SIN REGISTRO' => 'SIN REGISTRO', 'SI' => 'SI', 'NO' => 'NO')));
    echo $form->input('QualityControl.observaciones', array('label' => "Observaciones"));
    echo $form->input('QualityControl.calificacion', array('label' => "Calificación", 'type' => 'select', 'options' => array(1 => 'PENDIENTE', 2 => 'REQUIERE DOCUMENTO', 3 => 'NO CUMPLE', 4 => 'CUMPLE')));
    echo $form->input('QualityControl.documentos_requeridos', array('label' => "Documentos requeridos"));

    echo $ajax->submit('Guardar', array('url' => array('controller' => 'QualityControls', 'action' => 'add', $predio), 'update' => 'content', 'indicator' => 'loading'));
    echo $form->end();
    echo $ajax->link("Regresar", array('controller' => 'QualityControls', "action" => "quality_index", $predio), array('update' => 'content'));
    ?>  


</fieldset>
